int_num = 123                 # 整型
print(type(int_num))          # 输出结果：<class 'int'>
int_to_str = str(int_num)     # 将整型转为字符串
print(type(int_to_str))       # 输出结果：<class 'str'>

str_num = "250"               # 字符串
print(type(str_num))          # 输出结果：<class 'str'>
str_to_int = int(str_num)     # 将字符串转为整型
print(type(str_to_int))       # 输出结果：<class 'int'>

str_num = '3.14'              # 字符串
print(type(str_num))          # 输出结果：<class 'str'>
strToFloat = float(str_num)   # 将字符串转为浮点数
print(type(strToFloat))       # 输出结果：<class 'float'>

